package com.master.train.business.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.master.train.common.utils.PageUtils;
import com.master.train.common.utils.Query;

import com.master.train.business.dao.DailyTrainTicketDao;
import com.master.train.business.entity.DailyTrainTicketEntity;
import com.master.train.business.service.DailyTrainTicketService;


@Service("dailyTrainTicketService")
public class DailyTrainTicketServiceImpl extends ServiceImpl<DailyTrainTicketDao, DailyTrainTicketEntity> implements DailyTrainTicketService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DailyTrainTicketEntity> page = this.page(
                new Query<DailyTrainTicketEntity>().getPage(params),
                new QueryWrapper<DailyTrainTicketEntity>()
        );

        return new PageUtils(page);
    }

}